package org.jugile.util;

/*

Copyright (C) 2007-2011 Jukka Rahkonen  email: jukka.rahkonen@iki.fi

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

*/

/**
 * "And he said unto them, Is a candle brought to be put under a bushel, 
 *  or under a bed? and not to be set on a candlestick?  
 *  For there is nothing hid, which shall not be manifested; neither was 
 *  any thing kept secret, but that it should come abroad." (Mark 4:21-22)
 *  
 * ==========
 *  
 * Very simple cache interface for application object caching needs.
 * @author jukka.rahkonen@iki.fi
 */
public interface Cache {

	public Object get(String key);
	public void set(String key, Object o);
	public void set(String key, Object o, int secs);
	public void flush();
	public Object flush(String key);
	
}
